# -*- coding: utf-8 -*-

# Copyright (c) Huoty, All rights reserved
# Author: Huoty <sudohuoty@163.com>

class Base1(object):

    def __init__(self):
        self.b = 1


class Base2(object):

    def __init__(self):
        self.b = 2


class TB(object):

    def __init__(self):
        self.t = 10
        super().__init__()


class SC1(TB, Base1):

    pass


class SC2(TB, Base2):

    pass


s1 = SC1()
print(s1.b, s1.t)

s2 = SC2()
print(s2.b, s2.t)

# 在类中，如果没有方法，会尝试在 MRO 的下一个类中查找
# super 返回 mro 中的下一个类
